projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
934b91f
)
gl renderer: Use rect_contains_rect() copy
author
Timm Bäder
<mail@baedert.org>
Mon, 11 Jan 2021 20:49:30 +0000
(21:49 +0100)
committer
Timm Bäder
<mail@baedert.org>
Sun, 17 Jan 2021 03:39:26 +0000
(
04:39
+0100)
And this way the contains_rect() inside
rounded_inner_rect_contains_rect() goes from 3.3% to 0.79% in the
fishbowl when rendering the levelbars.
gsk/gl/gskglrenderer.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskglrenderer.c
b/gsk/gl/gskglrenderer.c
index 70dfce97923b22b61d2760f59823514240dbbd21..c1ef336eed0d1ca1e9e8234c1ab393115b95ced1 100644
(file)
--- a/
gsk/gl/gskglrenderer.c
+++ b/
gsk/gl/gskglrenderer.c
@@
-1554,7
+1554,7
@@
rounded_inner_rect_contains_rect (const GskRoundedRect *rounded,
MAX (rounded->corner[GSK_CORNER_BOTTOM_LEFT].height,
rounded->corner[GSK_CORNER_BOTTOM_RIGHT].height);
- return graphene_rect_contains_rect (&inner, rect);
+ return
_
graphene_rect_contains_rect (&inner, rect);
}
/* Current clip is NOT rounded but new one is definitely! */